<?php
//if ($this->session->flashdata('message')) { 
//    <p>=$this->session->flashdata('message')</p>
//}
    
echo '<div id="contentfull">';
echo '<div id="login">';
?>
<!--<div><p> <h2> Credentials Check </h2></p> </div>-->
<?php echo validation_errors(); ?>

<?php echo form_open('index.php/prelogin'); ?>
 <?php echo form_fieldset('login'); ?>
<table>
    <tr>
        <td width="40%" ><?php echo form_label('Username', 'user_name'); echo form_error('user_name');  ?> </td>
        <td width="60%" ><?php echo form_input('user_name', set_value('user_name')); ?>       </td>
    </tr>
    <tr>
        <td> <?php echo form_label('Password', 'passwd'); echo form_error('passwd'); ?> </td>
        <td> <?php echo form_password('passwd'); ?> </td>
    </tr>
    <tr>
        <td colspan="2" align="center" > <?php echo form_submit('login', 'Login'); ?>  </td>
    </tr>
</table>    
<?=form_fieldset_close()?>
<?=form_close();?>

</div> <!--content-->
</div> <!--login-->

